package com.framework.web;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

import com.framework.util.SqlUtil;
import com.jfinal.core.Controller;

public class IndexAction extends Controller {
	
	public void index() {
		Map map = new HashMap();
		map.put("name", "123");
		setAttr("sql", SqlUtil.sql("user.getUser", map));
		setAttr("sql2", SqlUtil.sql("user.getUser2", map));
		map = new HashMap();
		map.put("list", Arrays.asList(new String[]{"aaa", "bbb", "ccc", "ddd"}));
		setAttr("sql3", SqlUtil.sql("user.getUser3", map));
	}

}
